package com.lxp.kotlintest.contract

import com.lxp.kotlintest.base.IBaseView
import com.lxp.kotlintest.base.IPresenter
import com.lxp.kotlintest.bean.news.NewsInfo

interface NewsContract {


    interface View : IBaseView {
        /**
         * 获取新闻列表数据
         */
        fun getNewsList(newsInfo: NewsInfo)

        fun showError(errorMsg: String, errorCode: Int, errorLevel: Int)
    }


    interface Presenter : IPresenter<View> {
        /**
         * 获取新闻列表数据
         */
        fun getNewsList()
    }


}